package ij.umasuo.algorithms.natives;

import ij.IJ;
import ij.ImageJ;
import ij.Prefs;

//import ij.ImagePlus;

/**
 * this is the processor that use the native methods
 * @author liuquan
 * @date 2013-09-13
 * @version 1.0
 *
 */
public class NativeProcessor {
	static{
		
		try{
			String dllPath = Prefs.getHomeDir() + "\\GaussianDLL.dll";
//			String dllPath = "E:\\ProgramSpace\\hk-ust\\workspace\\ImageJ\\lib\\dll\\GaussianDLL.dll";
			System.load(dllPath);
//			System.out.println(dllPath);
//			System.load("E:\\ProgramSpace\\hk-ust\\workspace\\ImageJ\\lib\\dll\\GaussianDLL.dll");
//			IJ.log("E:\\ProgramSpace\\hk-ust\\workspace\\ImageJ\\lib\\dll\\GaussianDLL.dll");
		}catch(Exception e){
			IJ.log(e.toString());
		}
//		System.load("C:\\Program Files\\Micro-Manager-1.4-64\\GaussianDLL.dll");
	}
	/**
	 * 
	 * @param imp byte array
	 * @param channel 
	 * @param frame
	 * @return
	 */
//	public native String process(int arg1,String imgPath,double psf,double pfa);
	public native String process(int arg1,String imgPath,double psf,double pfa,double pw);
}
